@import './modules/header.scss';
@mixin marginCenter ($width:1190px){
    width: $width;
    margin-left:auto;
    margin-right:auto;
}
$color : #fff;
*{margin: 0;padding: 0;}
li{
    list-style: none;
}
a{text-decoration: none;}
.nav{
    height: 60px;
    background-color: #790603;
    position: relative;
    z-index: 10;
    &-ul{
        height: 60px;
        @include marginCenter;
        display: flex;
    }
    li{
        text-align: center;
        font-size: 16px;
        color: $color !important;
        line-height: 60px;
        flex: 1;
        cursor: pointer;
    }
}
.main{
    background-color: #f3f3f3;    
}
.preferent{
    overflow: hidden;
    @include marginCenter;   
    // height: 164px;
    padding-bottom: 20px;   
    &-top{
        background-color: $color;
        margin-top: 20px;
        width: 100%;
        height: 164px;
        background-color: #e5262e;
        border-radius: 30px;        
        a{            
            width: 370px;
            display: block;
            float: left;
            color: #e5262e;
            text-align: center;
            height: 164px;
            background-color: #fff;
            box-shadow: 10px 10px 10px #9f9f9f;
            span{
                line-height: 118px;
                color: #e5262e;
                font-size: 60px;
            }
            p{color:#9f9f9f}
        }
        .more{
            width: 80px;
            background-color: #e5262e;  
            p{
                writing-mode: vertical-lr;
                color:#fff;
                line-height: 80px;
                padding-top: 45px;
                font-size: 18px;
            }         
        }        
    }
    &-bottom{
        width: 100%;
        height: 250px;
        &-left{
            width: 1150px;
            height: 100%;
            float: left;
            a{
                width: 555px;
                height: 105px;
                background-color: $color;
                border-radius: 10px;
                margin-top: 20px;
                margin-right: 20px;
                float: left;
                display: flex;
                justify-content: space-around;
                align-items: center;
                box-shadow: 10px 10px 10px #9f9f9f;
                div{
                    height: 100%;
                    width: 300px;
                    display: flex;
                    flex-direction: column;
                    justify-content: space-evenly;
                    p{
                        color: black;
                        font-size: 24px;
                    }
                    span{
                        color: #9f9f9f;
                    }
                }
            }
        }
        &-right{
            float: right;
            width: 40px;
            height: 150px;
            margin-top: 20px;
            background-color: #e5262e;
            border-radius: 40px;
            writing-mode: vertical-lr;
            color:#fff;
            line-height: 38px;
            padding-top: 80px;
            font-size: 18px;
        }
    }
}
.shop{
    @include marginCenter;  
    h2{text-align: center;line-height: 60px;font-weight: 900;margin: 30px 0;}
    .shop-nav{
        width: 1190px;
        height: 60px;
        display: block;
        border-radius: 30px;
        display: flex;
        background-color: #9f9f9f;
        a{
            width: 25%;
            text-align: center;
            color: $color;
            line-height: 60px;
            font-size: 18px;
            border-radius: 30px;
        }
        .active{
            background-color: red;
        }
    }
    ul{
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        li{
            background-color: $color;
            width: 290px;
            height: 472px;
            margin-bottom: 10px;
            &:hover img{
                transform: scale(1.2);
            }
            a{
                display: block;
                width: 100%;
                height: 100%;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: space-between;
                div{
                    height: 290px;
                    width: 290px;
                    background-color: cadetblue;
                    position: relative;
                    overflow: hidden;
                    img{
                        width: 100%;
                        height: 100%;
                        transition: all 1s;                        
                    }                 
                    span{
                     position: absolute;
                     left: 0;
                     bottom: 0;
                     background-color: red;
                     border-bottom-right-radius: 10px;
                     border-top-left-radius:  10px;
                     border-top-right-radius:  10px;   
                     text-align: center;
                     color: $color;
                     padding: 0 5px;
                    }
                }
                p{
                    color:black;
                    font-size: 18px;
                }
                p:nth-child(3){
                    color:#706f6e;
                    font-size: 16px;
                }
                &>span{
                    background-color: #000;
                    border-radius: 30px;
                    text-align: center;
                    color: $color;
                    padding: 0 10px;
                    height: 30px;
                    line-height: 30px;
                    margin-bottom: 20px;
                    p{
                        font-weight: 800;
                        font-size: 18px;
                        color: $color;
                        display: inline-block;                        
                    }
                }
            }
        }
    }
}
.shop-pc{
    @include marginCenter;  
    h2{text-align: center;line-height: 60px;font-weight: 900;margin: 30px 0;}
    ul{
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        li:hover img{
            transform: scale(1.2);
        }
        li{
            background-color: $color;
            width: 290px;
            height: 472px;
            margin-bottom: 10px;
            transition: all 1s;            
            a{
                display: block;
                width: 100%;
                height: 100%;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: space-between;
                div{
                    height: 290px;
                    width: 290px;
                    background-color: $color;
                    overflow: hidden;
                    img{
                        width: 100%;
                        height: 100%;
                        transition: all 1s;
                    }                    
                }
                p{
                    color:black;
                    font-size: 18px;
                    margin-top: 20px;
                }
                p:nth-child(2){
                    color:#706f6e;
                    font-size: 16px;
                }
                &>span{
                    text-align: center;
                    color: red;
                    padding: 0 10px;
                    height: 30px;
                    line-height: 30px;                    
                    p{
                        font-weight: 800;
                        font-size: 18px;
                        color: red;
                        display: inline-block;   
                        margin: 0;                     
                    }
                }
                .good-buy{
                    height: 0;
                    background-color: red;
                    color: $color;
                    text-align: center;
                    line-height: 50px;
                    font-size: 18px;
                    overflow: hidden;
                    transition: all 0.5s;
                }
            }
        }
        li:nth-child(1){
            width:590px;
            overflow: hidden;
            img{
                width: 100%;
                height: 100%;
            }
        }
        li:hover{
            box-shadow: 20px 20px 20px #9f9f9f;
            .good-buy{
                display: block;
                height: 50px;
            }
        }
    }
}
.shop-furniture{
    @include marginCenter;  
    h2{text-align: center;line-height: 60px;font-weight: 900;margin: 30px 0;}
    .main-good{
        width: 100%;
        display: block;
        img{
            height: 100%;
            width: 100%;
        }
    }
    .swiper-container {
        width:1190px;
        height:320px;
        margin: 10px 0;
    }
    .swiper-slide{
        text-align: center;
        a{
            display: block;
            width: 223px;
            height: 320px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-between;
            background-color: #fff;
            div{
                background-color: $color;
                width: 223px;
                height: 200px;
                position: relative;
                img{
                    width: 100%;
                    height: 100%;
                }    
            }
            p{
                color:black;
                font-size: 14px;
            }
            &>span{
                background-color: #000;
                border-radius: 30px;
                text-align: center;
                color: $color;
                padding: 0 20px;
                height: 30px;
                line-height: 30px;
                margin-bottom: 10px;
                p{
                    font-weight: 800;
                    font-size: 18px;
                    color: $color;
                    display: inline-block;                        
                }
            }
        }
    }
    // .swiper-slide-active{
    // background:#ff6600;
    // color:#fff;
    // }
}
.foot{
    @include marginCenter;
    width: 1190px;
    img{
        width: 1190px;
    }
}
.callbackTop{
    border:2px solid #000;
    display: block;
    margin: 20px auto;
    color: #000;
    font-size: 18px;
    line-height: 60px;
    text-align: center;
    height: 60px;
    width: 200px;
    &:hover{
        background-color: red;
        color: $color;
    }
}
.ads div{
    width: 100%;
    height: 472px !important;
}